<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link rel="stylesheet" href="__PUBLIC__/assets/css/jquery-ui.css" />
</block>
<block name="stylecss">
<style type='text/css'>
	.tab-pane{
		padding:10px;
		text-align: center;
	}
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>

	<li class="active">内容展示管理</li>
</ul><!-- /.breadcrumb -->

<!-- #section:basics/content.searchbox -->
<div class="nav-search" id="nav-search"><button class="btn btn-xs btn-pink" onClick='location.href="__CONTROLLER__/article_add"'>添加内容</button></div>
<!-- /.nav-search -->
</block>
<block name="content">
	<div class="col-sm-6" style="width:100%;margin-top:20px;">
    <!-- #section:elements.tab.position -->
    <div class="tabbable tabs-left">
        <ul class="nav nav-tabs" id="myTab3">
            <li class="active">
                <a data-toggle="tab" href="#content1" aria-expanded="true">
                    <i class="red ace-icon fa fa-flag bigger-110"></i>
                    <b>关于迷笛</b>
                </a>
            </li>

            <li class="">
                <a data-toggle="tab" href="#content2" aria-expanded="false">
                    <i class="green ace-icon fa fa-leaf bigger-110"></i>
                    <b>其他</b>
                </a>
            </li>

            <li class="">
                <a data-toggle="tab" href="#content3" aria-expanded="false">
                    <i class="purple ace-icon fa fa-book"></i>
                    <b>备考指南 - 电吉他</b>
                </a>
            </li>

            <li class="">
                <a data-toggle="tab" href="#content4" aria-expanded="false">
                    <i class="pink ace-icon fa fa-book"></i>
                    <b>备考指南 - 爵士鼓</b>
                </a>
            </li>

            <li class="">
                <a data-toggle="tab" href="#content5" aria-expanded="false">
                    <i class="blue ace-icon fa fa-book"></i>
                    <b>备考指南 - 电贝司</b>
                </a>
            </li>

            <li class="">
                <a data-toggle="tab" href="#content6" aria-expanded="false">
                    <i class="orange ace-icon fa fa-book"></i>
                    <b>备考指南 - 音乐基础</b>
                </a>
            </li>
        </ul>

        <div class="tab-content" style="height:400px;">
            <div id="content1" class="tab-pane active" >
                <table class="table table-striped table-bordered table-hover">
                    <?php
                        for ($i=0; $i < $cols[5]; $i++) {
                            echo('<tr>');
                            for ($j=0; $j < 3; $j++) {
                                echo('<td>');
                                ?>
                                <a href="__CONTROLLER__/showcontent/id/{$article_arr[5][$i*3+$j]['article_id']}">{$article_arr[5][$i*3+$j]['article_title']}</a>
                                <?php
                                echo('</td>');
                            }
                            echo('</tr>');
                        }
                    ?>
                </table>
            </div>

            <div id="content2" class="tab-pane">
                <table class="table table-striped table-bordered table-hover">
                	<?php
                        for ($i=0; $i < $cols['6']; $i++) {
                            echo('<tr>');
                            for ($j=0; $j < 3; $j++) {
                                echo('<td>');
                                ?>
                                <a href="__CONTROLLER__/showcontent/id/{$article_arr['6'][$i*3+$j]['article_id']}">{$article_arr['6'][$i*3+$j]['article_title']}</a>
                                <?php
                                echo('</td>');
                            }
                            echo('</tr>');
                        }
                    ?>
                </table>
            </div>

            <div id="content3" class="tab-pane">
                <table class="table table-striped table-bordered table-hover">
                	<?php
                        for ($i=0; $i < $cols['1']; $i++) {
                            echo('<tr>');
                            for ($j=0; $j < 3; $j++) {
                                echo('<td>');
                                ?>
                                <a href="__CONTROLLER__/showcontent/id/{$article_arr['1'][$i*3+$j]['article_id']}">{$article_arr['1'][$i*3+$j]['article_title']}</a>
                                <?php
                                echo('</td>');
                            }
                            echo('</tr>');
                        }
                    ?>
                </table>
            </div>

            <div id="content4" class="tab-pane">
                <table class="table table-striped table-bordered table-hover">
                	<?php
                        for ($i=0; $i < $cols['2']; $i++) {
                            echo('<tr>');
                            for ($j=0; $j < 3; $j++) {
                                echo('<td>');
                                ?>
                                <a href="__CONTROLLER__/showcontent/id/{$article_arr['2'][$i*3+$j]['article_id']}">{$article_arr['2'][$i*3+$j]['article_title']}</a>
                                <?php
                                echo('</td>');
                            }
                            echo('</tr>');
                        }
                    ?>
                </table>
            </div>

            <div id="content5" class="tab-pane">
                <table class="table table-striped table-bordered table-hover">
                	<?php
                        for ($i=0; $i < $cols['3']; $i++) {
                            echo('<tr>');
                            for ($j=0; $j < 3; $j++) {
                                echo('<td>');
                                ?>
                                <a href="__CONTROLLER__/showcontent/id/{$article_arr['3'][$i*3+$j]['article_id']}">{$article_arr['3'][$i*3+$j]['article_title']}</a>
                                <?php
                                echo('</td>');
                            }
                            echo('</tr>');
                        }
                    ?>
                </table>
            </div>

            <div id="content6" class="tab-pane">
                <table class="table table-striped table-bordered table-hover">
                	<?php
                        for ($i=0; $i < $cols['4']; $i++) {
                            echo('<tr>');
                            for ($j=0; $j < 3; $j++) {
                                echo('<td>');
                                ?>
                                <a href="__CONTROLLER__/showcontent/id/{$article_arr['4'][$i*3+$j]['article_id']}">{$article_arr['4'][$i*3+$j]['article_title']}</a>
                                <?php
                                echo('</td>');
                            }
                            echo('</tr>');
                        }
                    ?>
                </table>
            </div>
        </div>
    </div>

    <!-- /section:elements.tab.position -->
</div>
</block>
<block name="scripts"></block>
<block name="jscript">
<script script="text/javascript">
    //模态框查看信息
    function dialog_see(obj) {
    	$('#crontab-s').val(obj);
		$('#myModal').modal('show');
	}

	//模态框关闭
	function modal_close() {
		$('#myModal').modal('hide');
	}

	//删除分类
    function type_delete(obj) {
    	$('#myModal').modal('show');
    }

    //删除提交
    function type_submit() {
    	var crontab = $('#crontab-s').val();
    	$('#myModal').modal('hide');
    	location.href="__CONTROLLER__/venue_del/venue_id/"+crontab;
    }
</script>
<script script="text/javascript">
    $(function(){
        $('#menu_baseinfo').addClass('active open');
        $('#menu_article_list').addClass('active');
    });
</script>
</block>